package com.wondertek.service.dto.business.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;


@Data
public class AlarmNoticeSettingUpdateReq implements Serializable {

    /**
     * id
     */
    @NotBlank(message = "id.not.null")
    @Schema(name = "id", description = "id")
    private String id;

    /**
     * 设备id
     */
    @NotBlank(message = "device.id.not.null")
    @Schema(name = "deviceId", description = "设备id")
    private String deviceId;

    /**
     * 区号
     */
    @NotBlank(message = "alarm.notice.area.code.not.null")
    @Schema(name = "countryCode", description = "区号")
    @Length(max = 5, message = "alarm.notice.area.code.max.length")
    private String countryCode;

    /**
     * 电话号码-接受人
     */
    @NotBlank(message = "alarm.notice.phone.not.null")
    @Schema(name = "phone", description = "电话号码")
    @Length(max = 15, message = "alarm.notice.phone.max.length")
    private String phone;

    /**
     * 是否短信通知  0:关闭 1:开启
     */
    @NotNull(message = "alarm.notice.is.sms.not.null")
    @Schema(name = "smsNotice", description = "是否短信通知 0:关闭 1:开启")
    private Integer smsNotice;

    /**
     * 是否电话通知  0:关闭 1:开启
     */
    @NotNull(message = "alarm.notice.is.phone.not.null")
    @Schema(name = "phoneNotice", description = "是否电话通知 0:关闭 1:开启")
    private Integer phoneNotice;
}
